package com.yhhvip.lottery.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

@ToString
@Data
public class ReqAddSysUserVo {

    @NotEmpty(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名", example = "admin", required = true, position = 1)
    private String username;

    @NotEmpty(message = "密码不能为空")
    @ApiModelProperty(value = "密码", example = "admin", required = true, position = 2)
    private String password;

    @NotEmpty(message = "手机号不能为空")
    @ApiModelProperty(value = "手机号", example = "16888888888", required = true, position = 3)
    private String phone;

    @NotNull(message = "状态不能为空")
    @ApiModelProperty(value = "状态(0:禁用, 1:可用)", example = "1", required = true, position = 4)
    private Byte status;

    @NotNull(message = "昵称不能为空")
    @ApiModelProperty(value = "昵称", example = "张三", required = true, position = 5)
    private String nickName;

}
